<template>
  <div class="answer">
    <div>
      <div
        v-for="(item, index) in body.body_json.questionContent"
        :key="index"
        class="questionContent_arr"
      >
        <div v-html="item"></div>
      </div>
    </div>
  </div>
</template>

<script>
import F from '@/utils/f'
export default {
  props: {
    body: {
      default: function () {
        return {}
      }
    }
  }
}
</script>

<style lang="scss">
.answer {
  font-size: 14px;
  line-height: 28px;
  .questionContent_arr {
    .span_answer_an {
      display: inline-block;
      padding: 10px 0 0;
    }
    img {
      padding: 10px 0;
    }
  }
  .input_answer_an {
  }
  .answer_title {
    margin-bottom: 14px;
    margin-top: 14px;
    .yellow {
      color: #ffbe33;
      font-size: 14px;
    }
  }
  .batch {
    width: 81px;
    height: 30px;
    background: rgb(255, 190, 51);
    border-radius: 6px;
    text-align: center;
    line-height: 30px;
    // font-size: 12px;
    font-family: SourceHanSansCN-Medium, SourceHanSansCN;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
  }
  .myAnswer {
    padding: 14px;
    padding-left: 0;
    color: #de394a;
  }
  .rate_box {
    height: 20px;
    border-radius: 4px;
    background: #0066ff;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    line-height: 20px;
    color: #fff;
    padding-left: 4px;
    padding-right: 4px;
  }
  .zipi_box {
    display: inline-flex;
    .answer_btn {
      width: 24px;
      height: 24px;
      border-radius: 4px;
      border: 2px solid rgba(51, 51, 51, 1);
      font-size: 12px;
      text-align: center;
      line-height: 24px;
      cursor: pointer;
      margin-right: 20px;
      color: #333;
    }
    .answer_btn_active {
      background: #ffbe33;
      border-color: #ffbe33;
    }
  }
}
.answer-move {
  font-size: 0.18rem;
  line-height: 0.28rem;
  .questionContent_arr {
    img {
      padding: 0.2rem 0;
    }
  }
  .myAnswer {
    padding: 0.14rem;
    padding-left: 0;
  }
  .batch {
    width: 81px;
    height: 30px;
    background: rgb(255, 190, 51);
    border-radius: 6px;
    text-align: center;
    line-height: 30px;
    // font-size: 12px;
    font-family: SourceHanSansCN-Medium, SourceHanSansCN;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
  }
  .rate_box {
    height: 0.2rem;
    border-radius: 0.04rem;
    background: #0066ff;
    border-radius: 0.04rem;
    display: inline-block;
    text-align: center;
    line-height: 0.2rem;
    color: #fff;
    padding-left: 0.04rem;
    padding-right: 0.04rem;
  }
  .zipi_box {
    display: inline-flex;
    .answer_btn {
      width: 0.24rem;
      height: 0.24rem;
      border-radius: 0.04rem;
      border: 0.02rem solid rgba(51, 51, 51, 1);
      // font-size: 0.12rem;
      text-align: center;
      line-height: 0.24rem;
      cursor: pointer;
      margin-right: 0.2rem;
      color: #333;
    }
    .answer_btn_active {
      background: #ffbe33;
      border-color: #ffbe33;
    }
  }
}
</style>
